<template>
  <div class="empty">
    <img v-if="type === 1" :style="{'height': imgHeight }" src="../assets/icon-empty1.png">
    <img v-else :style="{'height': imgHeight }" src="../assets/icon-empty.png">
    <p :style="{'fontSize': fontSize}">{{ text }}</p>
  </div>
</template>
<script>
  export default {
    name: 'Empty',
    props: {
      text: {
        type: String,
        default: '暂无数据'
      },
      fontSize: {
        type: String,
        default: '16px'
      },
      imgHeight: {
        type: String,
        default: 'calc(100% - 80px)'
      },
      type: {
        type: Number,
        default: 0
      }
    },
    data () {
      return {
      }
    },
    created () {
    },
    mounted() {

    },
    methods: {

    }
  };
</script>
<style lang="scss" scoped>
  .empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    p {
      color: #535A68;
      text-align: center;
      padding-top: 24px;
    }
  }
</style>




